<template>
  <div id="app">
   <p>完事</p>
   <p>{{obj.name}}{{obj.age>18?'能抽烟':'捶你人'}}</p>
   <img :src="img" alt="">
  </div>
</template>

<script>
export default{
  data(){
    return{
      obj:{
        name:'田华进',
        age:20
      },
      img:'https://img2.baidu.com/it/u=341960786,751829958&fm=253&fmt=auto&app=138&f=JPEG?w=430&h=420' 
    }
  }
}

</script>

<style>

</style>
